import instance from "@/axios";

//获取部门列表，渲染用户界面中的下拉选
export const  deptlist = ()=> instance.get('/dept/list')

// 部门列表分页
export  const deptPage = (searchParams)=> instance.post("/dept/page",searchParams)

// 部分的添加和修改
export const  addOrUpdateDept=(form)=>instance.post("/dept/addOrUpdate",form)

// 删除部门信息
export const  deleteDept=(id)=>instance.delete('/dept/delete/'+id)

